Skip to content

Some smaller optimizations and refactorings #9617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 24, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Aug 21, 2020

No description provided.

Move instType from ConstraintHandling to Constraint. It does not rely on any
state in ConstraintHandling, but is a pure function of the current constraint.

Todo: Do the same for other TypeComparer functions with the same property.
@liufengyun
Copy link
Contributor

test performance please

@dottybot
Copy link
Member

performance test scheduled: 15 job(s) in queue, 1 running.

@dottybot
Copy link
Member

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/9617/ to see the changes.

Benchmarks is based on merging with master (0d36979)

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

companion(paramNames)(
x => paramInfos.mapConserve(_.subst(this, x).asInstanceOf[PInfo]),
x => substParams(paramInfos, x),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is in conflict with the changes in #9618.

@odersky odersky merged commit 4c76d89 into scala:master Aug 24, 2020
@odersky odersky deleted the various-opts branch August 24, 2020 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants